@import "@/common/constants/StyleConst.scss";

html {
  overflow: hidden;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  // text-align: center;
  color: #2c3e50;
}

#app {
  height: 100vh;
  width: 100vw;
  text-align: center;
}

body {
  margin: 0px;
  height: 100vh;
  font-size: $font-xxs;
}

.content-container {
  flex: 1 !important;
  display: flex !important;
  height: calc(100% - 56px) !important;
  overflow: hidden;
}

.app-header {
  z-index: 5;
}

.container {
  padding: 15px 10px;

  .content {
    padding: 15px 30px;
  }
}

.breadcrumbs-container {
  min-width: 220px;
}

.breadcrumbs {
  padding-left: 0px !important;

  .v-breadcrumbs__item {
    font-size: $font-normal;
    color: $color-text-white;
  }
}

.flex-row {
  display: flex !important;
  flex-direction: row !important;
}

.flex-col {
  display: flex !important;
  flex-direction: column !important;
}

.flex-1 {
  flex: 1;
}

.pointer {
  cursor: pointer;
}

.disabled {
  cursor: no-drop;
}

.title {
  font-size: $font-small;
  font-weight: bold;
}

.bold {
  font-weight: bold !important;
}

.white-text {
  color: $color-text-white;
}

.gray-input {
  &.v-text-field.v-text-field--solo {
    align-items: center;

    &.v-textarea {
      label {
        top: 4px;
      }
    }

    &.v-input--dense {
      .v-input__control {
        min-height: 24px;

        label {
          font-size: 12px;
        }

        input,
        textarea {
          font-size: 12px;
        }

        textarea {
          margin: unset;
        }
      }

    }

    .v-input__append-outer {
      margin-top: 0;
      margin-bottom: 0;
    }

    .v-input__control {
      min-height: 40px;
    }
  }

  &.text-right {
    input {
      text-align: right;
    }
  }

  &.text-center {
    input {
      text-align: center;
    }
  }

  .v-input__slot {
    background-color: $color-theme-lightgrey !important;
    box-shadow: unset !important;
    padding: 0 8px;
  }
}

.gray-input-24 {
  &.v-text-field.v-text-field--solo {
    .v-input--dense {
      .v-input__control {
        min-height: 24px;
        font-size: 12px;
        color: $color-theme-grey;
        border-radius: 8px;
      }
    }
  }

  .v-input__slot {
    background-color: $color-theme-lightgrey !important;
    box-shadow: unset !important;

    .v-text-field__slot {
      textarea {
        margin-top: 0 !important;

      }
    }
  }
}

.white-input {
  padding: 0;
  margin: 0;

  &.v-text-field.v-text-field--solo {
    &.v-input--dense {
      .v-input__control {
        height: 24px;
        min-height: 24px;

        .v-input__slot {
          font-size: 12px;

          .v-text-field__slot {
            .v-label {
              font-size: 12px;
            }
          }
        }
      }
    }

    .v-input__control {
      min-height: 32px;

      .v-input__slot {
        padding: 0 8px;
        background-color: $color-bg-white !important;

        .v-text-field__slot {

          input,
          textarea {
            line-height: 22px;
            font-size: 12px;
            color: $color-theme-grey;
            margin-top: unset;
          }
        }
      }
    }
  }

  &.text-right {
    input {
      text-align: right;
    }
  }

  &.text-center {
    input {
      text-align: center;
    }
  }
}

.gray-input-40 {

  &.v-text-field.v-text-field--solo.v-input--dense {
    .v-input__control {
      min-height: 40px;
      border-radius: 8px;
      border-radius: 4px;
    }
  }

  .v-input__slot {
    padding: 0 5px !important;
    background-color: $color-theme-lightgrey !important;
    box-shadow: unset !important;

    .v-text-field__slot {

      input,
      textarea {
        font-size: 12px;
        color: $color-theme-grey;
        margin-top: unset;
      }
    }

    .v-select__slot {
      .v-select__selections {
        .v-select__selection {
          font-size: 12px;
          color: $color-theme-grey;
        }
      }
    }
  }
}

.clear {

  &::after,
  ::before {
    content: " ";
    display: block;
    clear: both;
    width: 0;
    height: 0;
  }
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
}

.col {
  flex: 1;
  align-items: center;
}

/* scrollbar Start */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background-color: #f5f5f5;
}

/* Track */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 0px;
  background-color: #f5f5f5;
}

/* Handle */
::-webkit-scrollbar-thumb {
  border-radius: 3px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: rgb(185, 185, 185);
}

::-webkit-scrollbar-thumb:window-inactive {
  background: rgb(185, 185, 185);
}

//font awesome icon
svg {
  vertical-align: middle;
  line-height: 100%;
  color: $color-text-white;
}

.v-viewer-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.PopupBar-container {
  width: 100%;
  height: 54px;
  display: flex;
  flex-direction: row;
  align-items: center;

  .title {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;

    span {
      width: 100%;
      font-weight: bold;
      font-size: $font-medium-small;
    }
  }

  .icon-close {
    cursor: pointer;

    svg {
      width: 20px;
      height: 20px;
      color: $color-bg-grey5;
    }
  }
}

.PopupContent-container {
  box-sizing: border-box;

  .row {
    .field {
      margin: 0 10px;
      width: 100px;
      text-align: left;
      font-size: 14px;
      font-weight: bold;
    }

    .value {
      width: 80%;
      display: flex;
      flex-direction: row;
      padding-right: 50px;
      box-sizing: border-box;

      svg {
        margin: 0 10px;
      }
    }
  }
}

.vee-validate-error {
  font-size: 10px;
  color: red;
}

.cursor-pointer {
  cursor: pointer;
}

.shock{
  position: relative;
  animation-delay: 0s;
  animation-name: shock;
  animation-duration: .1s;
  animation-iteration-count: 3;
  animation-direction: normal;
  animation-timing-function: linear;
}

@keyframes shock {
  0% {
    left: 0px;
    right: 5px;
  }
  100% {
    left: 5px;
    right: 0px;
  }
}